package edu.gym4all.service.domain;

import java.util.ArrayList;
import java.util.List;

import edu.gym4all.service.enums.TrainingTag;

public class TrainingPlan {

	// 6 trainings max
	private List<Training> training;

	private TrainingTag nextTag;

	private long id;

	public long getID() {
		return this.id;
	}

	public void setID(long id) {
		this.id = id;
	}

	public TrainingPlan(TrainingTag tag) {
		this.nextTag = tag;
		this.training = new ArrayList<Training>();
	}

	public List<Training> getTraining() {
		return this.training;
	}

	public void setTraining(List<Training> training) {
		this.training = training;
	}

	public void addTraining(Training training) {
		this.training.add(training);
	}

	public void removeTraining(Training training) {
		this.training.remove(training);
	}

	public TrainingTag getNextTag() {
		return this.nextTag;
	}

	public void setNextTag(TrainingTag tag) {
		this.nextTag = tag;
	}
}